home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 17 controls / customcontrolstest / startupform.vb < prev    next >
Encoding:
Text File  |  2001-10-19  |  4.5 KB  |  124 lines

  1. Public Class StartupForm
  2.     Inherits System.Windows.Forms.Form
  3.  
  4. #Region " Windows Form Designer generated code "
  5.  
  6.     Public Sub New()
  7.         MyBase.New()
  8.  
  9.         'This call is required by the Windows Form Designer.
  10.         InitializeComponent()
  11.  
  12.         'Add any initialization after the InitializeComponent() call
  13.  
  14.     End Sub
  15.  
  16.     'Form overrides dispose to clean up the component list.
  17.     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  18.         If disposing Then
  19.             If Not (components Is Nothing) Then
  20.                 components.Dispose()
  21.             End If
  22.         End If
  23.         MyBase.Dispose(disposing)
  24.     End Sub
  25.     Friend WithEvents Button1 As System.Windows.Forms.Button
  26.     Friend WithEvents Button2 As System.Windows.Forms.Button
  27.     Friend WithEvents Button3 As System.Windows.Forms.Button
  28.     Friend WithEvents Button4 As System.Windows.Forms.Button
  29.     Friend WithEvents Button5 As System.Windows.Forms.Button
  30.  
  31.     'Required by the Windows Form Designer
  32.     Private components As System.ComponentModel.Container
  33.  
  34.     'NOTE: The following procedure is required by the Windows Form Designer
  35.     'It can be modified using the Windows Form Designer.  
  36.     'Do not modify it using the code editor.
  37.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  38.         Me.Button4 = New System.Windows.Forms.Button()
  39.         Me.Button5 = New System.Windows.Forms.Button()
  40.         Me.Button1 = New System.Windows.Forms.Button()
  41.         Me.Button2 = New System.Windows.Forms.Button()
  42.         Me.Button3 = New System.Windows.Forms.Button()
  43.         Me.SuspendLayout()
  44.         '
  45.         'Button4
  46.         '
  47.         Me.Button4.Location = New System.Drawing.Point(16, 176)
  48.         Me.Button4.Name = "Button4"
  49.         Me.Button4.Size = New System.Drawing.Size(136, 40)
  50.         Me.Button4.TabIndex = 0
  51.         Me.Button4.Text = "GradientBackgroundEx"
  52.         '
  53.         'Button5
  54.         '
  55.         Me.Button5.Location = New System.Drawing.Point(16, 232)
  56.         Me.Button5.Name = "Button5"
  57.         Me.Button5.Size = New System.Drawing.Size(136, 40)
  58.         Me.Button5.TabIndex = 0
  59.         Me.Button5.Text = "AddressControl"
  60.         '
  61.         'Button1
  62.         '
  63.         Me.Button1.Location = New System.Drawing.Point(16, 8)
  64.         Me.Button1.Name = "Button1"
  65.         Me.Button1.Size = New System.Drawing.Size(136, 40)
  66.         Me.Button1.TabIndex = 0
  67.         Me.Button1.Text = "TextBoxEx and FileTextBox"
  68.         '
  69.         'Button2
  70.         '
  71.         Me.Button2.Location = New System.Drawing.Point(16, 64)
  72.         Me.Button2.Name = "Button2"
  73.         Me.Button2.Size = New System.Drawing.Size(136, 40)
  74.         Me.Button2.TabIndex = 0
  75.         Me.Button2.Text = "Extender Provider"
  76.         '
  77.         'Button3
  78.         '
  79.         Me.Button3.Location = New System.Drawing.Point(16, 120)
  80.         Me.Button3.Name = "Button3"
  81.         Me.Button3.Size = New System.Drawing.Size(136, 40)
  82.         Me.Button3.TabIndex = 0
  83.         Me.Button3.Text = "Countdown Label"
  84.         '
  85.         'StartupForm
  86.         '
  87.         Me.AutoScaleBaseSize = New System.Drawing.Size(7, 17)
  88.         Me.ClientSize = New System.Drawing.Size(176, 285)
  89.         Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button5, Me.Button4, Me.Button3, Me.Button2, Me.Button1})
  90.         Me.Font = New System.Drawing.Font("Microsoft Sans Serif", 11!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  91.         Me.Name = "StartupForm"
  92.         Me.Text = "StartupForm"
  93.         Me.ResumeLayout(False)
  94.  
  95.     End Sub
  96.  
  97. #End Region
  98.  
  99.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  100.         Dim frm As New TextBoxExForm()
  101.         frm.Show()
  102.     End Sub
  103.  
  104.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  105.         Dim frm As New ExtenderForm()
  106.         frm.Show()
  107.     End Sub
  108.  
  109.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
  110.         Dim frm As New CountdownForm()
  111.         frm.Show()
  112.     End Sub
  113.  
  114.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
  115.         Dim frm As New GradientForm()
  116.         frm.Show()
  117.     End Sub
  118.  
  119.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
  120.         Dim frm As New AddressForm()
  121.         frm.Show()
  122.     End Sub
  123. End Class
  124.